<? require_once('../include/connect.inc.php');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?
$query= query("SELECT * FROM  tb_question where topic_id=18");
		while ($rs= fetch_array($query)){
			$type=$rs['type_id'];
			$question_id=$rs['question_id'];
?>
<?
if ($type==1){
echo  $question_id;
echo "<br>";
}
if ($type==2){
echo $type;
echo  $question_id;
echo $rs[question_detail];
}
/*if ($type==3){
echo  $question_id;
echo "<br>";
}
if ($type==4){
echo  $question_id;
}
if ($type==5){
echo  $question_id;
echo "<br>";
}
if ($type==6){
echo  $question_id;
}
if ($type==7){
echo  $question_id;
echo "<br>";
}*/
?>
<? }?>
</body>
</html>
